/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ticketmaster.businesslogic;

import ticketmaster.dao.DAOFactory;
import ticketmaster.dao.SeatDAO;
import ticketmaster.dataobject.Seat;

/**
 *
 * @author Jenny .to insert data  into seat table
 */
public class SeatNumberController {

    public boolean addSeatNumber(Seat mySeat)
    {
        SeatDAO  mySeatDAO = DAOFactory.getInstance().getSeatDAO() ;
        if (mySeatDAO. insertSeat(mySeat) == 0)
        {
            return false;
        }
        else
        {
            return true;
        }
    }

}




